
angular
    .module('app.service')
    .service('LevelService', LevelService);

LevelService.$inject = ['API','$http'];
function LevelService(API,$http) {
    this.list = list;
    ////////////////

    function list(workId) {
        return $http.get(API+'levels?workId='+workId);
    }
}